<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-09 10:30:35
 * @Last Modified time: 2023-02-17 17:12:47
 */
namespace app\common\enum\store\order;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class ReceiptStatusEnum
 * @package app\common\enum\store\order
 */
class ReceiptStatusEnum extends BaseEnum
{
    // 未收货
    const NOT_RECEIVED = 0;

    // 已收货
    const RECEIVED = 1;

    // 已收货
    const PARTRECEIVED = 2;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::NOT_RECEIVED => [
                'name' => '未收货',
                'value' => self::NOT_RECEIVED,
                'color' => 'grey',
            ],
            self::RECEIVED => [
                'name' => '已收货',
                'value' => self::RECEIVED,
                'color' => 'green',
            ],
            self::PARTRECEIVED => [
                'name' => '部分收货',
                'value' => self::PARTRECEIVED,
                'color' => 'red',
            ],
        ];
    }
}

